<%--
	 +----------------------------------------------------------------------+
	 |																		|
	 | 环讯 配置文件															|
	 |																		|		
	 +----------------------------------------------------------------------+
--%>
<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="system.pay.ips" />
<content tag="buttons">
	<probiz:iconBtn btnType="save" onclick="return fnDoAction(this, 'saveConfigAction');" />
	<probiz:iconBtn btnType="back" url="${ctxPath}/system/paymentMethod.html" />
</content>
<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="system.pay.ips"/></span></li>
	</ul>
</div>

<div class="modify">
	<form class="mainForm" name="configForm" id="configForm" method="post" action="paymentMethod.html" onsubmit="return validateFormWithMsg(this);">
	<input type="hidden" name="paymentGatewayId" value="${paymentGateway.paymentGatewayId}"/>
		<table  width="100%" border="0" cellspacing="0" cellpadding="0" class="com_modi_table">
			<tr>
				<th colspan="2" class="title"><h4><fmt:message key="system.pay.shuo"/></h4></th>
			</tr>
			<tr>
				<th colspan="2" >
					<IMG alt="IPS" src="<c:url value="/pages/system/${paymentGateway.gatewayIcon}"/>"/>
					<ul class="intro">
						<li><fmt:message key="system.pay.please"/><a href="http://www.ips.com.cn" target="_blank" style="color:red;text-decoration: underline"><fmt:message key="system.pay.IPS"/></a><fmt:message key="system.pay.notice"/></li>
						<li><fmt:message key="system.pay.ipstitle1"/></li>
						<li><fmt:message key="system.pay.ipstitle2"/></li>
					</ul>
				</th>
			</tr>
			<tr>
				<th colspan="2" class="title"><h4><fmt:message key="system.paymentGateway.configItem"/></h4></th>
			</tr>
		<tr>
			<th style="width:150px;"><fmt:message key="system.pay.saleser"/>(<span class="red">*</span>):</th>
			<td>
				<input class="inputtxt" style="width: 350px" name="merCode" value="${paymentGateway.configData.merCode}" validConf="required,maxlength=100"/>
			</td>
		</tr>
		<tr>
			<th>
				<fmt:message key="system.pay.ipszhen"/>(<span class="red">*</span>):
			</th>
			<td>
				<textarea class="texttxt" style="width: 450px;height:80px;" name="merCert" validConf="required,maxlength=300"/>${paymentGateway.configData.merCert}</textarea>
			</td>
		</tr>

		<tr>
			<th>
				<fmt:message key="system.pay.ipsyes"/>(<span class="red">*</span>):
			</th>
			<td>
				<select name="retType" class="form-inputbox" validConf="required">
					<option value="0" <c:if test="${paymentGateway.configData.retType==0}">selected</c:if>><fmt:message key="system.pay.noserver"/></option>
					<option value="1" <c:if test="${paymentGateway.configData.retType==1}">selected</c:if>><fmt:message key="system.pay.yeserver"/></option>
				</select>
			</td>
		</tr>
		<tr>
			<th>
				<fmt:message key="system.pay.bizhong"/>(<span class="red">*</span>):
			</th>
			<td>	
				<select name="currency" style="width:200px" class="selectbox" validConf="required">
					<option value="RMB" <c:if test="${paymentGateway.configData.currency=='RMB'}">selected</c:if>><fmt:message key="system.pay.ren"/></option>
					<option value="HKD" <c:if test="${paymentGateway.configData.currency=='HKD'}">selected</c:if>><fmt:message key="system.pay.gang"/></option>
					<option value="ADSL" <c:if test="${paymentGateway.configData.currency=='ASDL'}">selected</c:if>><fmt:message key="system.pay.adsl"/></option>
				</select>
			</td>
		<tr>
			<th>
				<fmt:message key="system.pay.language"/>(<span class="red">*</span>):
			</th>
			<td>
				<select name="language" style="width:200px" class="selectbox" validConf="required">
					<option value="GB" <c:if test="${paymentGateway.configData.language=='GB'}">selected</c:if>><fmt:message key="system.pay.font1"/></option>
					<option value="EN" <c:if test="${paymentGateway.configData.language=='EN'}">selected</c:if>><fmt:message key="system.pay.font3"/></option>
					<option value="BIG5" <c:if test="${paymentGateway.configData.language=='BIG5'}">selected</c:if>><fmt:message key="system.pay.font2"/></option>
					<option value="JP" <c:if test="${paymentGateway.configData.language=='JP'}">selected</c:if>><fmt:message key="system.pay.font4"/></option>
					<option value="FR" <c:if test="${paymentGateway.configData.language=='FR'}">selected</c:if>><fmt:message key="system.pay.font5"/></option>
				</select>
			</td>
		</tr>
		<tr> 
			<th>
				<fmt:message key="system.pay.title3"/>(<span class="red">*</span>):
			</th>
			<td>
				<select name="type" style="width:200px" class="selecttxt" validConf="required">
					<option value="0" <c:if test="${paymentGateway.configData.type=='0'}">selected</c:if>><fmt:message key="system.pay.ceshi"/></option>
					<option value="1" <c:if test="${paymentGateway.configData.type=='1'}">selected</c:if>><fmt:message key="system.pay.zhenshi"/></option>
				</select>
			</td>
		</tr> 
	</table>
	</form>
</div>
<script>
$j(document).ready(function(){
	autoApplyValidate($j('#configForm')[0]);
});
</script>